<template>
    <div>

        <form action="/">
            <van-search v-model="ss" show-action placeholder="请输入搜索关键词" @search="onSearch" @cancel="onCancel" />
        </form>



    </div>
</template>

<script setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
let ss = ref('')
const onSearch = () => {
    router.push('/search')
}
</script>

<style lang="scss" scoped></style>